home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib33b.dsk
/
COLLISION DEMO 1.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
616b
|
21 lines
10 POKE 768,1: POKE 769,0: POKE 770,4
20 POKE 771,0: POKE 772,4: POKE 773,0
30 POKE 232,0: POKE 233,3: REM $E8,E9=$300
40 HGR : HCOLOR= 3
50 HOME
60 GOSUB 190
70 REM 'DRAW' SCANNER
80 SCALE= 80
90 FOR R = 0 TO 63
100 ROT= R
110 HCOLOR= 3: DRAW 1 AT 140,80: REM DRAW LINE
120 VTAB 22: PRINT PEEK(234);" "
130 IF PEEK(234) >0 THEN GET A$: IF A$ = "X" THEN
140 FOR I = 1 TO 25: NEXT I: REM DELAY LOOP
150 HCOLOR= 0: DRAW 1 AT 140,80: REM ERASE LINE
160 NEXT R
170 HCOLOR= 3: GOSUB 190: REM RE-CREATE FIELD
180 GOTO 90
190 REM CREATE FIELD
200 HPLOT 140,100: HPLOT 140,101
210 RETURN